{* Форма для регистрации пользователя *}

<center>

<p>
<table width=80% border=0>

   <tr>
   <td align=center>

   <form action="index.php" name=register_form method=post onSubmit="return valid_register(this);">

   <table border=1 width=80%>

      <tr>
         <td colspan=2 align=center>
         <table bgcolor=#{$smarty.const.CONF_MIDDLE_COLOR} width=80%><tr><td><font color=black class=big>{$smarty.const.REGISTER_INFORMATION}</font></td></tr></table>
         </td>
      </tr>

      <tr>
         <td colspan=2 align=center>
            {$smarty.const.REGISTER_REQUIRED}<br><br>
         </td>
      </tr>

      <tr>
         <td align=right><font color=red>*</font> {$smarty.const.REGISTER_LOGIN_USER}</td>
         <td><input type="text" name="first" value="{$reg_userinfo[0]|replace:'"':'&quot;'}"></td>
      </tr>
      <tr>
         <td align=right><font color=red>*</font> {$smarty.const.REGISTER_PASS}</td>
         <td><input type="password" name="second"></td>
      </tr>
      <tr>
         <td align=right><font color=red>*</font> {$smarty.const.REGISTER_PASS_REPEAT}</td>
         <td><input type="password" name="second_repeat"></td>
      </tr>
      
      <tr>
         <td align=right> {$smarty.const.REGISTER_EMAIL}</td>
         <td><input type="text" name="email" value="{$reg_userinfo[1]|replace:'"':'&quot;'}"></td>
      </tr>
      

      <tr><td>&nbsp;</td> <td>&nbsp;</td> </tr>
      
      <tr>
         <td align="left" colspan="2"> {$smarty.const.INFO_ADMIN_PASSWORD}</td>
      </tr>
      
      <tr>
         <td align=right>{$smarty.const.REGISTER_ADMIN_NAME}</td>
         <td><input type="text" name="admin_first" value="{$reg_userinfo[2]|replace:'"':'&quot;'}"></td>
      </tr>

      <tr>
         <td align=right>{$smarty.const.REGISTER_PASS_ADMIN}</td>
         <td><input type="password" name="admin_second"></td>
      </tr>

      <tr>
         <td align=right> {$smarty.const.REGISTER_PASS_REPEAT_ADMIN}</td>
         <td><input type="password" name="admin_second_repeat"></td>
      </tr>
      
      
      <tr><td> &nbsp;  </td> <td>&nbsp;</td> </tr>

      <tr>
         <td  align="center"> <p class=warn_brown_12> {$smarty.const.REGISTER_CODE_INFO} </p> </td>
         <td> <img src="{$name_image}" </td>
      </tr>

      <br><br>

      <tr>
         <td align=right> <font color=red>*</font> {$smarty.const.REGISTER_CODE} </td>
         <td><input type="text" name="code"></td>
      </tr>
      
      <tr>
         <td align=right> &nbsp; </td>
         <td> <input type="submit" value="{$smarty.const.REGISTER_BUTTON}"> </td>
      </tr>
      
   </table>
   <input type=hidden name="register_page">

   </form>

   </td>

   </tr>

</table>
</p>

</center>
